package com.supcon.news.action.news;

import com.opensymphony.xwork2.ActionSupport;
import com.supcon.news.bean.News;
import com.supcon.news.service.NewsService;

public class UpdateNewsAction extends ActionSupport
{

	private static final long serialVersionUID = 4451010366647285495L;
	private News news;
	private NewsService service;
	public News getNews()
	{
		return news;
	}
	public void setNews(News news)
	{
		this.news = news;
	}
	public NewsService getService()
	{
		return service;
	}
	public void setService(NewsService service)
	{
		this.service = service;
	}
	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}
	@Override
	public String execute() throws Exception
	{
		service.update(news);
		return SUCCESS;
	}
}
